import UIAbility from '@ohos.app.ability.UIAbility';
import hilog from '@ohos.hilog';
import window from '@ohos.window';

export default class DocAbility extends UIAbility {
  onWindowStageCreate(windowStage: window.WindowStage) {
    windowStage.loadContent('pages/day44_Router/UIAbility/DocPage', (err, data) => {
    });

  }
  //实现UI资源的释放
  onWindowStageDestroy() {
    // Main window is destroyed, release UI related resources
    hilog.info(0x0000, 'testTag', '%{public}s', 'DocAbility onWindowStageDestroy');
  }
  //UIAbility实例销毁执行的
  onDestroy() {
    hilog.info(0x0000, 'testTag', '%{public}s', 'DocAbility onDestroy');
  }
}
